package com.aaa.service.impl;

import com.aaa.entity.User;
import com.aaa.mapper.UserMapper;
import com.aaa.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Resource
    UserMapper userMapper;


    @Override
    public List<User> login(String username, String userpwd) {
        return userMapper.login(username, userpwd);
    }

    @Override
    public int register(User user) {
        return userMapper.register(user);
    }

    @Override
    public List<User> getId(String username) {
        return userMapper.getId(username);
    }

    @Override
    public int Upwd(User user) {
        return userMapper.Upwd(user);
    }

}
